package com.transaction.demo.task.config;

import java.util.Map;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class TaskConfig {

	@Value("${message.handle.duration}")
	public String duration;

	/** 通知间隔时间 */
	@Value("#{${message.send.time}}")
	public Map<Integer, Integer> timeMap;

	/** 最大发送次数 */
	@Value("${message.max.send.times}")
	public short maxTimes;

}
